package com.flea.hclv.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.flea.hclv.model.entity.HServicePayRebackItem;

public interface HServicePayRebackItemMapper {
    int deleteByPrimaryKey(String id);

    int insert(HServicePayRebackItem record);

    int insertSelective(HServicePayRebackItem record);

    HServicePayRebackItem selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HServicePayRebackItem record);

    int updateByPrimaryKey(HServicePayRebackItem record);

	List<HServicePayRebackItem> findByPayOrgIdAndOrdNoAndRebackStatusPaging(
			RowBounds rowBounds, @Param("payOrgId")String payOrgId, @Param("orderNo")String orderNo,
			@Param("rebackStatus")String rebackStatus);

  List<HServicePayRebackItem> findByOrderNo(@Param("orderNo")String orderNo);

  List<HServicePayRebackItem> findByPayOrgIdAndOrderNo(@Param("payOrgId")String pagOrgId, @Param("orderNo")String orderNo);

  List<HServicePayRebackItem> findByRecevidOrgIdAndOrderNo(@Param("recivedOrgId")String recivedOrgId, @Param("orderNo")String  orderNo);
}